<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'vehicle.label', default: 'Vehicle')}"/>
    <title>催收安排</title>
</head>

<body>
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>PLS CINDATA</li>
                    <li class="active">
                        <span>催收安排</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">

            </h2>
        </div>
    </div>
</div>

<g:if test="${flash.message}">
    <div class="message alert alert-info" role="status">${flash.message}</div>
</g:if>
<g:hasErrors bean="${this.menu}">
    <ul class="errors" role="alert">
        <g:eachError bean="${this.menu}" var="error">
            <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                    error="${error}"/></li>
        </g:eachError>
    </ul>
</g:hasErrors>

<div class="content animate-panel">
    <div class="row">
        <div class="hpanel hblue">
            <div class="panel-heading">
                催收安排
            </div>

            <div class="panel-body form-horizontal">
                <div class="form-group">
                    <label class="col-md-5 control-label ">资产包名：</label>
                    <div class="col-md-3">
                        <g:textField class="form-control" type="text" name="borrName" id="borrName" value="${abnormalMortgageBatch?.name}" readonly="true"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-md-5 control-label ">处置方式：</label>
                    <div class="col-md-3">
                        <g:textField class="form-control m-b" name="borrPhone" id="borrPhone"  value="${abnormalMortgageBatch?.disposeMethod}" readonly="true"/>
                    </div>
                </div>

                <g:form action="disposalAsignSave" resource="${this?.abnormalMortgageBatch}">

                    <g:textField class="form-control hidden" type="text" name="targetUri" id="targetUri" value="${params.targetUri}"/>
                    
                    <div class="form-group">
                        <label class="col-md-5 control-label ">催收负责人：</label>
                        <div class="col-md-3">
                            <g:select class="form-control" name="disposalUser" id="disposalUser" optionKey="id" optionValue="fullName" from="${com.cindata.User.findAllByDepartment(com.cindata.User.findById(session.SPRING_SECURITY_CONTEXT.authentication.principal.id)?.department)}" value="${this?.abnormalMortgageBatch?.disposalUser?.id}" noSelection="${['': '请选择']}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-5 control-label ">催收要求说明：</label>
                        <div class="col-md-3">
                            <g:textArea  name="description" id="description"  value="${abnormalMortgageBatch?.description}" class="form-control textarea" rows="5" cols="5"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-2 col-md-offset-6">
                            <g:submitButton class="btn btn-info" name="create" value="保存"/>
                        </div>
                    </div>
                </g:form>
            </div>
        </div>
    </div>
</div>

</body>
</html>
